//
//  AppDelegate.m
//  DJIVideo
//
//  Created by wenpd on 2021/4/6.
//

#import "AppDelegate.h"
#import "DJIVideoViewController.h"
#import <DJILogin_Category/CTMediator+DroneManager.h>
#import <QBUtility/ZQLogToolManager.h>

@interface AppDelegate ()

@end

@implementation AppDelegate


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    // Override point for customization after application launch.
    
    //Initial logtool
    [[ZQLogToolManager shareManager] logIntial];
    [ZQLogToolManager shareManager].logLevel = ZQLogToolManagerLevelText;
    
    //DJI SDK register
    [[CTMediator sharedInstance]DJIDroneManager_init];
    
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    
    UIViewController * viewController = [[DJIVideoViewController alloc]init];
    
    UINavigationController *nav = [[UINavigationController alloc] initWithRootViewController:viewController];
    [self.window setRootViewController:nav];
    [self.window makeKeyAndVisible];
    
    [ZQLogToolManager shareManager].rootViewController = self.window.rootViewController;
    
    return YES;
}



@end
